<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="role_id" class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- 'multiple'=>'', 有参数 是多选 -->
            {:build_select('group[]', $groupdata, $groupids, ['class'=>'form-control selectpicker', 'multiple'=>'','data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="username" name="row[username]" value="{$row.username}" data-rule="required;username" />
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control" id="email" name="row[email]" value="{$row.email}" data-rule="required;email" />
        </div>
    </div>
    <div class="form-group">
        <label for="nickname" class="control-label col-xs-12 col-sm-2">姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="nickname" name="row[nickname]" autocomplete="off" value="{$row.nickname}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">{:__('Password')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="password" class="form-control" id="password" name="row[password]" autocomplete="new-password" value="" data-rule="password" />
        </div>
    </div>
     <div class="form-group">
        <label for="c-department_id" class="control-label col-xs-12 col-sm-2">部门:</label>

        <div class="col-xs-12 col-sm-8">


            <input id="c-department_id"  data-source="setting/department/selectpage" class="form-control selectpage" name="row[department_id]" type="text" value="{$row.department_id}">
        </div>
    </div>
     <div class="form-group">
        <label for="c-groupname_id" class="control-label col-xs-12 col-sm-2">分组:</label>

        <div class="col-xs-12 col-sm-8">
            <input id="c-groupname_id"  data-source="setting/groupname/selectpage" class="form-control selectpage" name="row[groupname_id]" type="text" value="{$row.groupname_id}">
        </div>
    </div>
     <div class="form-group">
        <label for="password" class="control-label col-xs-12 col-sm-2">绩效:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" id="performance" name="row[performance]" value="{$row.performance}" data-rule="required;" />
        </div>
    </div>
  
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
